package com.dingding.common.core.config;

import org.apache.log4j.Logger;

/**
 * 
 * @ClassName: SystemKeyConfig 
 * @Description: 秘钥配置类
 * @author CHEHAUNBO 
 * @date 2016年6月7日 上午10:02:01
 * 
 */
public class SystemKeyConfig extends AbstractConfig {

	private Logger log = Logger.getLogger(SystemKeyConfig.class);

	private static String privateKey = null;
	private static String publicKey = null;

	@Override
	public void intitalConfigValue() {

		privateKey = prop.get("privateKey");
		publicKey = prop.get("publicKey");

		log.info("正在初始化秘钥！");

	}

	public static String getPrivateKey() {
		return privateKey;
	}

	public static void setPrivateKey(String privateKey) {
		SystemKeyConfig.privateKey = privateKey;
	}

	public static String getPublicKey() {
		return publicKey;
	}

	public static void setPublicKey(String publicKey) {
		SystemKeyConfig.publicKey = publicKey;
	}

}
